package com.cuit.freshmanMS.service;

import com.cuit.freshmanMS.domain.Academy;
import com.cuit.freshmanMS.query.AcademyQuery;
import com.cuit.freshmanMS.util.result.CommonResult;
import com.cuit.freshmanMS.util.result.PageResult;

import java.util.List;

public interface AcademyService {
    //查询所有
    List<Academy> loadAll();

    //删除
    CommonResult deleteAcaByAno(Integer ano);

    //批量删除
    CommonResult batchDelete(List<Integer> anos);

    //新增
    CommonResult addAca(Academy academy);

    //修改
    CommonResult updateAca(Academy academy);


    //高级查询
    PageResult<Academy> selectAll(AcademyQuery academyQuery);

    CommonResult<Academy> getAcaByAno(Integer ano);
}
